package com.zq.设计模式23种.创建型模式.单例模式;

/**
 * @author Jiu
 * @description：TODO
 * @date 2020/11/24   11:23
 **/
public class SingletonH {
    public SingletonH() {
    }

    public static SingletonH getInstance(){
        return SingletonHolder.instance;
    }
    private static class SingletonHolder {
        private static final SingletonH instance = new SingletonH();
    }

}
